package com.my.content.near;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.my.content.contants.Contants;
import com.my.content.liveproject.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class NearSeeAllActivity extends Activity {

    @BindView(R.id.near_seeAll_seeAll)
    TextView nearSeeAllSeeAll;
    @BindView(R.id.near_seeWoman)
    TextView nearSeeWoman;
    @BindView(R.id.near_seeMan)
    TextView nearSeeMan;
    @BindView(R.id.near_cancel)
    TextView nearCancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_near_see_all);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.near_seeAll_seeAll, R.id.near_seeWoman, R.id.near_seeMan, R.id.near_cancel})
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.near_seeAll_seeAll:
                intent.putExtra("seeAll", Contants.Nearby);
                setResult(1,intent);
                finish();
                break;
            case R.id.near_seeWoman:
                intent.putExtra("seeWoman", Contants.Nearby_Women);
                setResult(1,intent);
                finish();
                break;
            case R.id.near_seeMan:
                intent.putExtra("seeMan", Contants.Nearby_Man);
                setResult(1,intent);
                finish();
                break;
            case R.id.near_cancel:
                finish();
                break;
        }
    }
}
